Package com.cisco.pt.ipc.sim.pdu.impl
Class RIPRoutePacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.RIPRoutePacketImpl
- All Implemented Interfaces:
IPCData,Pdu,RIPRoutePacket,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Shortprotected IPAddressprotected booleanprotected intprotected IPAddressprotected Shortprotected IPAddressFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAddressFamily(Short addressFamily) voidsetIpAddress(IPAddress ipAddress) voidsetIsRedistributed(boolean isRedistributed) voidsetMetric(int metric) voidsetNextHop(IPAddress nextHop) voidsetRouteTag(Short routeTag) voidsetSubnetMask(IPAddress subnetMask) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
addressFamily
-
routeTag
-
ipAddress
-
subnetMask
-
nextHop
-
metric
protected int metric -
isRedistributed
protected boolean isRedistributed
-
-
Constructor Details
-
RIPRoutePacketImpl
public RIPRoutePacketImpl()
-
-
Method Details
-
getAddressFamily
- Specified by:
getAddressFamilyin interfaceRIPRoutePacket- Returns:
- Short Returns a Short
-
setAddressFamily
- Specified by:
setAddressFamilyin interfaceRIPRoutePacket- Parameters:
addressFamily- Takes in a parameter of addressFamily
-
getRouteTag
- Specified by:
getRouteTagin interfaceRIPRoutePacket- Returns:
- Short Returns a Short
-
setRouteTag
- Specified by:
setRouteTagin interfaceRIPRoutePacket- Parameters:
routeTag- Takes in a parameter of routeTag
-
getIpAddress
- Specified by:
getIpAddressin interfaceRIPRoutePacket- Returns:
- IPAddress Returns a IPAddress
-
setIpAddress
- Specified by:
setIpAddressin interfaceRIPRoutePacket- Parameters:
ipAddress- Takes in a parameter of ipAddress
-
getSubnetMask
- Specified by:
getSubnetMaskin interfaceRIPRoutePacket- Returns:
- IPAddress Returns a IPAddress
-
setSubnetMask
- Specified by:
setSubnetMaskin interfaceRIPRoutePacket- Parameters:
subnetMask- Takes in a parameter of subnetMask
-
getNextHop
- Specified by:
getNextHopin interfaceRIPRoutePacket- Returns:
- IPAddress Returns a IPAddress
-
setNextHop
- Specified by:
setNextHopin interfaceRIPRoutePacket- Parameters:
nextHop- Takes in a parameter of nextHop
-
getMetric
public int getMetric()- Specified by:
getMetricin interfaceRIPRoutePacket- Returns:
- int Returns a int
-
setMetric
public void setMetric(int metric) - Specified by:
setMetricin interfaceRIPRoutePacket- Parameters:
metric- Takes in a parameter of metric
-
getIsRedistributed
public boolean getIsRedistributed()- Specified by:
getIsRedistributedin interfaceRIPRoutePacket- Returns:
- boolean Returns a boolean
-
setIsRedistributed
public void setIsRedistributed(boolean isRedistributed) - Specified by:
setIsRedistributedin interfaceRIPRoutePacket- Parameters:
isRedistributed- Takes in a parameter of isRedistributed
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-